<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var arr = [1,2,3,4,5]

        arr.reverse()

        for(var i = 0; i < arr.length; i++){
            console.log(arr[i])
        }

        var arr1 = [1,2,3,4]
        var arr2 = [5,6,7]

        console.log(arr.concat(arr2))


        var emtyArr = []

        for(var i = 0; i < 5; i++){
            var childArr = []

            for(var j = 0; j < 5; j++){
                childArr.push(j)
            }
            console.log(childArr)
            emtyArr.push(childArr)
        }

        console.log(emtyArr)
    </script>
</body>
</html>